/**
 * For the license, see main.cpp file
 */

#ifndef AUTHENTICATOR_H
#define AUTHENTICATOR_H

#include <QApplication>
#include <QObject>
#include <QThread>
#include <QString>
#include <QSslSocket>
#include <QDebug>

class QTcpSocket;

class Authenticator : public QThread
{
	Q_OBJECT
	
private:
	QTcpSocket *socket;
	bool isConnected();
	
public:
	void run();
	void authMySelf();

signals:
	void newLogLine(QString line, bool showOnTray = false);
};

#endif //AUTHENTICATOR_H
